package com.atguigu.gulimail.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrEntity;
import com.atguigu.gulimail.product.vo.AttrEntityRespVO;
import com.atguigu.gulimail.product.vo.AttrEntityVO;
import com.atguigu.gulimail.product.vo.AttrGroupDeleteVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author fangyi
 * @email 2244210628@qq.com@gmail.com
 * @date 2022-08-09 22:57:13
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId, String type);

    void saveAttrAndGroup(AttrEntityVO attr);

    AttrEntityRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrEntityVO attr);

    List<AttrEntity> QueryAttrGroupRelation(Long attrgroupId);

    void DeleteAttrGroupRelation(AttrGroupDeleteVo[] attrgroupId);

    PageUtils queryNoAttrPage(Map<String, Object> params, Long attrGroupId);

    List<Long> getAbleCheckAttrs(List<Long> ids);
}

